package com.ruoyi.stream.framework.core.protocol;

import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.common.utils.uuid.UUID;
import com.ruoyi.stream.framework.enums.SKARequestOption;

import java.util.Map;
import java.util.Objects;

public class StreamAliveRequest {
    private String uri;

    private Map<String,String> header;

    private final String reqId = Seq.getId();

    private Map<String, Object> params;

    private String option;

    private Object requestBody;

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Map<String, String> getHeader() {
        return header;
    }

    public void setHeader(Map<String, String> header) {
        this.header = header;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public String getOption() {
        return option;
    }

    public void setOption(SKARequestOption option) {
        this.option = option.getOptionString();
    }

    public void setOption(String option) {
        this.option = option;
    }

    public Object getRequestBody() {
        return requestBody;
    }

    public void setRequestBody(Object requestBody) {
        this.requestBody = requestBody;
    }

    public String getReqId() {
        return reqId;
    }
}
